package com.youlai.boot.modules.content.model.form;

import java.io.Serial;
import java.io.Serializable;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Getter;
import lombok.Setter;
import java.time.LocalDateTime;
import jakarta.validation.constraints.*;

/**
 * 分类表单对象
 *
 * @author youlaitech
 * @since 2025-02-20 11:07
 */
@Getter
@Setter
@Schema(description = "分类表单对象")
public class LzCategoryForm implements Serializable {

    @Serial
    private static final long serialVersionUID = 1L;

    @Schema(description = "分类ID")
    private Long id;

    @Schema(description = "分类名")
    @Size(max=128, message="分类名长度不能超过128个字符")
    private String name;

    @Schema(description = "父分类id，如果没有父分类为-1")
    private Long pid;

    @Schema(description = "描述")
    @Size(max=512, message="描述长度不能超过512个字符")
    private String description;

    @Schema(description = "状态0:正常,1禁用")
    @Size(max=1, message="状态0:正常,1禁用长度不能超过1个字符")
    private String status;

    private Long createBy;

    private LocalDateTime createTime;

    private Long updateBy;

    private LocalDateTime updateTime;

    @Schema(description = "删除标志（0代表未删除，1代表已删除）")
    private Integer isDeleted;


}
